package com.jumi.microservice.domain;

import com.baomidou.mybatisplus.annotation.Version;
import com.jumi.microservice.common.base.AbstractObject;

import java.io.Serializable;

/**
 * 商品sku库存DTO类
 *
 * @author Administrator
 */
public class GoodsStockDTO extends AbstractObject implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 商品sku id
     */
    private Long goodsSkuId;

    /**
     * 商品sku编码
     */
    private String goodsSkuCode;

    /**
     * 商品spu id
     */
    private Long goodsId;

    /**
     * sku 总库存
     */
    private Integer goodsSkuStorage;

    /**
     * 预售库存
     */
    private Integer preStorage;

    /**
     * sku初始的预售库存
     */
    private Integer initialPreStorage;

    /**
     * 锁定库存
     */
    private Integer lockedStorage;

    /**
     * 商品sku的购买数量
     */
    private Integer purchaseQuantity;

    /**
     * 已销售库存
     */
    private Integer saledStorage;

    /**
     * 并发版本控制
     */
    @Version
    private Integer version;

    /**
     * 是否自营
     */
    private Integer isShelf;

    /**
     * 是否预售(0:否,1:是)
     */
    private Integer isPre;

    /**
     * 商品sku库存流水DTO类
     */
    private GoodsStockLogDTO goodsStockLog;

    /**
     * 商品sku分仓库存DTO类
     */
    private GoodsWarehouseStockDTO goodsWarehouseStock;

    public String getGoodsSkuCode() {
        return goodsSkuCode;
    }

    public void setGoodsSkuCode(String goodsSkuCode) {
        this.goodsSkuCode = goodsSkuCode;
    }

    public Integer getGoodsSkuStorage() {
        return goodsSkuStorage;
    }

    public void setGoodsSkuStorage(Integer goodsSkuStorage) {
        this.goodsSkuStorage = goodsSkuStorage;
    }

    public Integer getLockedStorage() {
        return lockedStorage;
    }

    public void setLockedStorage(Integer lockedStorage) {
        this.lockedStorage = lockedStorage;
    }

    public Integer getSaledStorage() {
        return saledStorage;
    }

    public void setSaledStorage(Integer saledStorage) {
        this.saledStorage = saledStorage;
    }


    public Long getGoodsSkuId() {
        return goodsSkuId;
    }

    public void setGoodsSkuId(Long goodsSkuId) {
        this.goodsSkuId = goodsSkuId;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getPreStorage() {
        return preStorage;
    }

    public void setPreStorage(Integer preStorage) {
        this.preStorage = preStorage;
    }

    public Integer getInitialPreStorage() {
        return initialPreStorage;
    }

    public void setInitialPreStorage(Integer initialPreStorage) {
        this.initialPreStorage = initialPreStorage;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }


    public Integer getIsShelf() {
        return isShelf;
    }

    public void setIsShelf(Integer isShelf) {
        this.isShelf = isShelf;
    }

    public Integer getIsPre() {
        return isPre;
    }

    public void setIsPre(Integer isPre) {
        this.isPre = isPre;
    }

    public GoodsStockLogDTO getGoodsStockLog() {
        return goodsStockLog;
    }

    public void setGoodsStockLog(GoodsStockLogDTO goodsStockLog) {
        this.goodsStockLog = goodsStockLog;
    }

    public GoodsWarehouseStockDTO getGoodsWarehouseStock() {
        return goodsWarehouseStock;
    }

    public void setGoodsWarehouseStock(GoodsWarehouseStockDTO goodsWarehouseStock) {
        this.goodsWarehouseStock = goodsWarehouseStock;
    }

    public Integer getPurchaseQuantity() {
        return purchaseQuantity;
    }

    public void setPurchaseQuantity(Integer purchaseQuantity) {
        this.purchaseQuantity = purchaseQuantity;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "GoodsStockDTO{" +
                "id=" + id +
                ", goodsSkuId=" + goodsSkuId +
                ", goodsSkuCode='" + goodsSkuCode + '\'' +
                ", goodsId=" + goodsId +
                ", goodsSkuStorage=" + goodsSkuStorage +
                ", preStorage=" + preStorage +
                ", initialPreStorage=" + initialPreStorage +
                ", lockedStorage=" + lockedStorage +
                ", purchaseQuantity=" + purchaseQuantity +
                ", saledStorage=" + saledStorage +
                ", version=" + version +
                ", isShelf=" + isShelf +
                ", isPre=" + isPre +
                ", goodsStockLog=" + goodsStockLog +
                ", goodsWarehouseStock=" + goodsWarehouseStock +
                '}';
    }
}
